package org.ricks.net.action.anno;

import org.ricks.ioc.anno.RicksMethod;
import org.ricks.net.action.Task;

import java.lang.annotation.*;

/**
 * @author ：demon-chen
 * @date ：Created in 2019/12/17 下午1:30
 * @description：业务指令
 */
@RicksMethod
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ActionMethod {

    short command() default 0;

    Task value() default Task.TaskBus;

    boolean isRpc() default false;
}
